/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package parse;

import java.util.*;
import util.Util;

/**
 *
 * @author phong
 */
public class CCGDerivation {
    
    CCGNode root;
    String[] tokens;
    
    public CCGDerivation(CCGNode root, String sentence) {
        this.root = root;
        this.tokens = Util.tokenize(sentence, " ");
    }
    
    public CCGNode getRoot() {
        return this.root;
    }
    
    public String[] getTokens() {
        return this.tokens;
    }
    
    public List<CCGLexNode> getLexNodes() {
        return root.getLexNodes();
    }
    
    public void putInChart(Chart chart) {
        this.root.putInChart(chart);
    }
}
